package xin.ssm.jxc.dao;

import java.util.List;

import xin.ssm.jxc.model.Users;

public interface UsersMapper {
	//通过主键删除
    int deleteByPrimaryKey(String userloginname);

    int insert(Users record);
    //普通用户注册
    int insertSelective(Users record);
    //校验用户名是否存在
    Users selectByPrimaryKey(String userloginname);
    //普通用户登录
    Users selectByNameAndPassword(Users record);
    //根据用户类型查询
    List<Users> selectAllUserByType(String type);
    //动态查询用户
    List<Users> findUserDynamic(Users record);
    
    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);
    
}